package com.lin.bank.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lin.bank.entity.Account;
import com.lin.bank.vo.AccountVO;

/**
 * 帐户服务
 *
 * @author Li
 * @date 2022/04/21
 */
public interface AccountService extends IService<Account> {

    AccountVO login(AccountVO accountVO);

    Double getBalance(String cardNo);

    int updatePassword(String cardNo,String password,String newPwd);

    /**
     * 转账
     *
     * @return int
     */
    int TransferMoney(String cardNo,String cardNo2,Double balance);


}
